/*
 * ErrorOutputs.cpp
 *
 *  Created on: 27.04.2009
 *      Author: markus
 */

#include "ErrorOutputs.h"
#include <iostream>

void writeExceptionOutputF(std::string strFunctionName, std::string strText)
{
//	#if OGRE_PLATFORM == PLATFORM_WIN32 || OGRE_PLATFORM == OGRE_PLATFORM_WIN32
//			MessageBoxA(NULL, strText, "An exception has occurred!", MB_OK | MB_ICONERROR | MB_TASKMODAL);
//	#else
        std::cout << "-"
                  << std::endl
                  << "!!!!!!!!!!!!!!! An exception has occurred !!!!!!!!!!!!!!!"
                  << std::endl
                  << strFunctionName
                  << ":"
                  << std::endl
                  << strText
                  << std::endl
                  << "-"
                  << std::endl;
//	#endif
}

void writeDebugOutputF(std::string strFunctionName, std::string strText/*, bool bHeader = true*/)
{
/*
    if(bHeader)
    {
        std::cout << "################ EISENREICH DEBUG OUTPUT ################" << std::endl;
    }
*/
    std::cout << "-"
              << std::endl
              << strFunctionName
              << std::endl
              << strText
              << std::endl
              << "-"
              << std::endl;
}
